<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% System.out.println(123);%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">


  
  <body align="center">
  
      <form style="align:center" action="lzc/Test1" method="post" >
              <p>   姓名： <input type="text" name="name" id="name" /></p>
              <p>   密码： <input type="password" name="password" id="password" /></p>
              <input type="submit" name="submit" id="submit" value="提交" />
              <input type="reset" name="reset" id="reset" value="重置" />
              
    </form>
    <%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>

<%
int num = (int) java.lang.Math.round(java.lang.Math.random() * 8999);
 String sRand = "" + (1000 +num);
 session.setAttribute("userInfo.authcode",sRand);
%>
<img:image src="/images/auth.jpg" refresh="true">
 

<img:text text="<%=sRand.substring(0,1)%>" x="7" y="-1" font="Times New Roman" bold="false" size="22" color="0x993399" italic="true" />
<img:text text="<%=sRand.substring(1,2)%>" x="17" y="-1" font="Times New Roman" bold="false" size="22" color="0x660033" italic="false" />
<img:text text="<%=sRand.substring(2,3)%>" x="27" y="-1" font="Times New Roman" bold="true" size="18" color="0xcc3366" italic="true" />
<img:text text="<%=sRand.substring(3,4)%>" x="37" y="-1" font="Times New Roman" bold="false" size="22" color="0x990099" italic="false" />
 

<%if(num<4500){%>
 <img:grayscale brightness="90" />
<%}%>
 
</img:image>
    
  </body>
</html>
